package com.woniuxy.carlife.carlifeorderweb.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
*@ClassName:ChargeOrder
*@Description:
*@author qk
*@date 2021/4/7 20:08
**/
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("t_charge_order")
@ApiModel(value="ChargeOrder对象", description="")
public class ChargeOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "买家id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer bid;

    @ApiModelProperty(value = "充电站id")
    private Integer cid;

    @ApiModelProperty(value = "充电桩地址")
    private String chargeAddress;
    @ApiModelProperty(value = "充电桩id")
    private Integer zid;

    @ApiModelProperty(value = "开始充电时间")
    private Date chargeStartTime;

    @ApiModelProperty(value = "充电时长")
    private Integer duration;

    @ApiModelProperty(value = "支付状态")
    private Integer payStatus;

    @ApiModelProperty(value = "原始支付金额")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "折扣后支付金额")
    private BigDecimal finalPrice;

    private String carId;

    private Integer stopWay;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


}
